<?php
if(isset($imgs)){
	foreach($imgs as $img){
		echo CHtml::image( $this->createUrl('thumbnail',array('pid'=>$img->_id,'width'=>100,'height'=>100)));
		echo  $img->_id ;
		echo '<br/>';
	}
}